/**
 * $Id$
 * @author Skautron
 * @date   07/09/2011 19:58:03
 *
 * Copyright (C) 2011 Scytl Secure Electronic Voting SA
 *
 * All rights reserved.
 *
 */
package org.sk.gsync.ui;

import java.awt.BorderLayout;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class Principal extends DefaultFrame {

    private static final long serialVersionUID = 4231604234368735494L;

    /**
     * @see org.sk.gsync.ui.DefaultFrame#configure()
     */
    @Override
    public void configure() {
        JLabel lblNewLabel = new JLabel("SK GSync 0.1 Alpha");
        lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
        getContentPane().add(lblNewLabel, BorderLayout.CENTER);
        ImageIcon icon =
            new ImageIcon(getClass().getResource(
                "/img/logo-system-tray-24.png"));
        CustomTrayIcon trayIcon = new CustomTrayIcon(icon.getImage());
        trayIcon.setParent(this);
        setBounds(100, 100, 368, 252);
    }

    /**
     * @see org.sk.gsync.ui.DefaultFrame#updateContext()
     */
    @Override
    public void updateContext() {
    }

}
